<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<base href="${pageContext.request.contextPath}/">
	<base target="_blank">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
    <title>trip-${tName}</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="robots" content="index,follow" />
    <link rel="shortcut icon" href="images/favicon.ico" />
    <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" />
    <link rel="stylesheet" href="css/flexslider.css" type="text/css" />
    <link rel="stylesheet" href="css/style.css" type="text/css" />
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="js/all-in-one.js"></script>
    <script type="text/javascript" src="js/setup.js"></script>
    <script type="text/javascript" src="js/portfolio-filter.js"></script>
<script type="text/javascript">
$(window).load(function(){
	$('#demo-side-bar').removeAttr('style');
});
</script>
<style type="text/css">
.demobar{display:none;}
#demo-side-bar{top:53px!important;left:90%!important;display:block!important;}
</style>
 <!--Dynamically creates ads markup-->
   <?php include("http://www.egrappler.com/ads-header.php"); ?>
    <!-- Header -->
    <header class="header_bg clearfix">
		<div class="container clearfix">
        	<!-- Social -->
            	<ul class="social-links">
                	<li ><a href="javascript:"><img src="images/facebook.png" alt="Facebook"></a></li>
                    <li ><a href="javascript:"><img src="images/twitter.png" width="24" height="24" alt="Twitter"></a></li>
                </ul>
            <!-- /Social -->
			 <!-- Logo -->
			<div class="logo">
				<a href="/trip/"><img src="images/logo.png" alt="" /></a>
			</div>
			 <!-- /Logo -->
			
			<!-- Master Nav -->
			<nav class="main-menu">
				<ul>
					<li><a href="/trip/">首页</a></li>
					<li>
						<a>分类</a>
						<ul>
							
							<li><a href="/trip/showhot">热门景点</a></li>
							
							<li><a href="elements.html">游玩直播</a></li>
							<li><a href="showNotes">达人游记</a></li>
							<li><a href="javascript:">攻略</a>
								<ul>
									<li><a href="pricing_2_cols.html">旅行路线</a></li>
                                    <li><a href="blog_single.html">微博动态</a></li>
                                    <li><a href="pricing_5_cols.html">问答</a></li>
									
								</ul>
							</li>
                            
                            <li><a href="full_width.html">美文</a></li>
						</ul>
					</li>
					<li><a>主题</a>
						<ul>
							<c:forEach var="t" items="${totalList}">
								<li><a href="/trip/showLocationByTotal/${t.tID}-${t.tName}">${t.tName}</a></li>
							</c:forEach>
						</ul>
					</li>
					<li><a href="user/reg">注册</a></li>
					<li><a href="user/login">登录</a></li>
				</ul>
			</nav>
			<!-- /Master Nav -->
		</div>
</header>
    <!-- /Header -->
    <!-- START CONTENT -->
    <section class="container clearfix">
		<!-- Page Title -->
			<header class="container page_info clearfix">
				
					<h1 class="regular brown bottom_line">${tName}</h1>
				
				<div class="clear"></div>
			</header>
			
		<!-- /Page Title -->
		
		
		<div class="container">
			<!-- CATEGORY FILTER -->
			<div class="filter">
				<ul>
					<li><a href="javascript:void(0);" id="all" class="selected">Everything</a></li>
					
					<li><a href="javascript:void(0);" id="app">Free Goodies</a></li>
					
					<li><a href="javascript:void(0);" id="util">WordPress Themes</a></li>
               
				</ul>
			</div>
			<!-- END CATEGORY FILTER -->
		</div>
		
		<div class="clear padding20"></div>
		
		
		<div class="portfolio_1_2">
			<ul id="list">
				<c:forEach var="l" items="${page.list}" varStatus="i">
					<c:choose>
						<c:when test="${i.count%2==0}">
							<li class="app">
								<span class="image">
								<a href="${l.liimgPath}" data-rel="prettyPhoto" class="img-thumb"><img class="portfolio_image" src="${l.liimgPath}" alt="${l.lName}" /></a>
								</span>
								<span class="title"><a href="showLocationByLid/${l.lID}">${l.lName}</a></span>
								<span class="description">
								${l.lintro}
								</span>
								<span class="clear padding15"></span>
							</li>
						</c:when>
						<c:otherwise>
							<li class="util">
								<span class="image">
								<a href="${l.liimgPath}" data-rel="prettyPhoto" class="img-thumb"><img class="portfolio_image" src="${l.liimgPath}" alt="${l.lName}" /></a>
								</span>
								<span class="title"><a href="showLocationByLid/${l.lID}">${l.lName}</a></span>
								<span class="description">
								${l.lintro}
								</span>
								<span class="clear padding15"></span>
							</li>
						</c:otherwise>
					</c:choose>
				</c:forEach>
			</ul>
			<p style="text-align: right; font-size: 30px">
					<c:if test="${page.pageNumber>1}">
						<a href="/trip/showLocationByTotal/${tID}-${tName}-1">首页</a> &nbsp
						<a href="/trip/showLocationByTotal/${tID}-${tName}-${page.pageNumber-1}">上一页</a> &nbsp
					</c:if>
					<c:if test="${page.pageNumber<page.totalPage}">
						<a href="/trip/showLocationByTotal/${tID}-${tName}-${page.pageNumber+1}">下一页</a> &nbsp
						<a href="/trip/showLocationByTotal/${tID}-${tName}-${page.totalPage}">末页</a> &nbsp
					</c:if>
					[${page.pageNumber}|${page.totalPage}]	
				</p>
			<div class="clear"></div>
		</div>
	</section>
    <!-- END CONTENT -->
    <!-- footer -->
    <footer class="footer_bg_bottom clearfix">
		<div class="footer_bottom container">
			<div class="col_2_3">
				
			
				
				
				<div class="clear padding20"></div>
				
				
				<p>
					&copy; Some Rights Reserved. &nbsp; <a href="#">Legal Notices</a>  More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a> </p>
				
			</div>
			
			<div class="clear padding20"></div>
		</div>
	</footer>
    <!-- /footer -->
	
    </div>
    <!--wrapper end-->
	
</body>
</html>
    